home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 17 / CU Amiga Magazine's Super CD-ROM 17 (1997)(EMAP Images)(GB)[!][issue 1997-12].iso / CUCD / Programming / AMOSList / AMOSLIST.0997 / 000223_amos-request@svcs1.digex.net_Sat Sep 20 17:14:21 1997.msg < prev    next >
Text File  |  1997-10-01  |  4KB  |  86 lines

  1. Received: from svcs1.digex.net (svcs1.digex.net [204.91.197.224])
  2.     by mail4.access.digex.net (8.8.5/8.8.5) with ESMTP id RAA04365
  3.     for <mcox@access.digex.net>; Sat, 20 Sep 1997 17:14:20 -0400 (EDT)
  4. Received: (from daemon@localhost)
  5.     by svcs1.digex.net (8.8.5/8.8.5) id PAA08757
  6.     for amos-out; Sat, 20 Sep 1997 15:40:54 -0400 (EDT)
  7. Received: from mail4.access.digex.net (mail4.access.digex.net [205.197.247.2])
  8.     by svcs1.digex.net (8.8.5/8.8.5) with ESMTP id PAA08754
  9.     for <amos-list@svcs1.digex.net>; Sat, 20 Sep 1997 15:40:53 -0400 (EDT)
  10. Received: from relay2.inet.tele.dk (relay2.inet.tele.dk [194.182.149.120])
  11.     by mail4.access.digex.net (8.8.5/8.8.5) with SMTP id PAA22702
  12.     for <amos-list@access.digex.net>; Sat, 20 Sep 1997 15:40:51 -0400 (EDT)
  13. Received: (qmail 14844 invoked from network); 20 Sep 1997 20:40:58 -0000
  14. Received: from post8.tele.dk (194.239.134.172)
  15.   by relay2.inet.tele.dk with SMTP; 20 Sep 1997 20:40:58 -0000
  16. Received: from post8.tele.dk ([194.239.180.84]) by post8.tele.dk
  17.           (Netscape Mail Server v2.02) with SMTP id AAA34504
  18.           for <amos-list@access.digex.net>; Sat, 20 Sep 1997 21:40:32 +0200
  19. From: Jens Vang Petersen <top_cat@post8.tele.dk>
  20. To: amos-list@access.digex.net
  21. Date: Sat, 20 Sep 1997 20:03:06 +0100
  22. Message-ID: <yam7202.308.1748005112@post8.tele.dk>
  23. X-Mailer: YAM 1.3.4 [020] - Amiga Mailer by Marcel Beck
  24. Subject: Compiler Bugs !!!
  25. MIME-Version: 1.0
  26. Content-Type: text/plain
  27. Status: O
  28. X-Status: 
  29.  
  30. Hi, everyone..
  31.  
  32. I hope I don't waste your time or HD-space, but as I've seen many having
  33. problems with the compiler, and today it was my turn, I tried out all the
  34. tricks I knew, but couldn't find a way, but suddenly it worked, I thought
  35. I had found the place of the error, but no, I tried again and it didn't
  36. work, so eventualy I understood what has happend, so I thought I would
  37. share this with you as I havn't seen it written on the list before...
  38.  
  39.  
  40. What happens: The compiler hangs after about 1/5 of the work, the program
  41. runs great from the editor, and it worked with no problems the last time.
  42.  
  43. Try: Check your loops (While-Wend, For-Next, Do-Loop, Repeat-Until) if they
  44. are quite long and/or spans complex code (eg. many If-Else If-Endif), then
  45. try and pick parts (or all) of the code into a subroutine and call it in
  46. the loop, sometimes the compiler don't work right even if the editor does,
  47. the so-called 'option for long jumps' appears to hang the compiler when
  48. the span of the jumps gets long..
  49. eg:
  50. -------
  51.    Do
  52.       blah.blah.blah.
  53.       lots more blah.blah.blah.
  54.    Loop
  55. -------
  56. Replace this with:
  57. -------
  58.    Do
  59.       Gosub Chk
  60.    Loop
  61. Chk:
  62.    blah.blah.blah.
  63.    lots more blah.blah.blah.
  64. Return
  65. -------
  66. .. I found that problems began at a span of about 250 lines of code, but I
  67. think that'll depend on what type of code is in the lines...
  68. .. I suspect that If-Else-Endif constructions might get the same errors...
  69.  
  70. If the above does not work, then a chance might be to try and run the
  71. 'retokeniser', another go is to save the entire program as ASCII (Mark all
  72. as a block and save), save the banks as an 'ABS' file, then shut down, and
  73. start a new project, oad the program using 'merge ascii' and load the
  74. banks back up, if some sort of illegal char has been placed somewhere, or
  75. the structure of the program-data is screwed up this ought to fix that..
  76.  
  77. -- 
  78. Happy greetings, Yours..
  79. __________________________________________________________________________
  80.  /_  __/ __  / __  /\  ___\  __ \__  _\           aka. JENS VANG PETERSEN
  81.   / / / /_/ / ____/  \ \___\  __ \ \ \  Nyvej 8, DK-4450 Jyderup, Denmark
  82.  /_/ /_____/_/        \_____\_\ \_\ \_\             top_cat@post8.tele.dk
  83. --------------------------------------------------------------------------
  84.  God is real, unless declared integer.
  85. --------------------------------------------------------------------------
  86.